__author__ = 'l4537'
#coding:utf-8
import os,re,sys
def Wwn_re_xiaoxie(s):
    return re.sub(r'()','',s).lower()
def Sea(file,scr):
    pass
    f = open(file,"r")
    data = f.read()
    b = re.findall(str(scr),data)
    return b
#主程序，直接导入无:的wwn，或者大写的.
def WWn(wwn):
    if  len(wwn) == 16 or len(wwn)== 23:
        a = re.findall(r":",wwn)
        b = []
        # print(()
        if len(a) == 0:
            k = []
            for i in range(0,16,2):
                z = i + 2
                k.append(wwn[i:z])
            k = ":".join(k).lower()
            b.append(k)
        elif len(a) > 0:
            b.append(wwn.lower())
        b = b[0]
    else:
        b = False
    return b
#小写

#直接调用 WWn(500023454356)
# print(WWn("2219487b6b372772"))
